"use strict";

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
    const { router, controller } = app;
    router.get("/", controller.home.index);
    // 注册接口
    router.post("/register", controller.home.register);
    router.post("/login", controller.home.login);
    // 添加博客
    router.post("/blogs", controller.blog.create);
};
